import request from '@/utils/request'

// 会议列表
export function getMeetingList(query) {
  return request({
    url: '/meeting/getmeetinglist',
    method: 'get',
    params: query
  })
}

// 新增会议
export function addMeeting(data) {
  return request({
    url: '/meeting/addmeeting',
    method: 'post',
    data: data
  })
}

// 编辑会议
export function editMeeting(data) {
  return request({
    url: '/meeting/editmeeting',
    method: 'post',
    data: data
  })
}

// 获取登录人对应会议类型
export function getUserMeetTypeList(data) {
  return request({
    url: '/meeting/getusermeettypelist',
    method: 'get',
    params: data
  })
}

// 上传会议附件
export function uploadmeetingfile(data) {
  return request({
    url: '/fileupload/uploadmeetingfile',
    method: 'post',
    data: data
  })
}
